#pragma once
#include "Engine/Engine.h"
#include "RenderTargetPool.h"

class FrameFlowDataManager
{
public:
    FrameFlowDataManager(bool IsExtrapolation=false);
    virtual ~FrameFlowDataManager();

public:
    void SwapBuffers();

    TRefCountPtr<IPooledRenderTarget> GetCurrent();
    TRefCountPtr<IPooledRenderTarget> GetPrevious();
    TArray<TRefCountPtr<IPooledRenderTarget>> FFInputRT;

private:
    int CurrentIndex = 0;
    int PrevIndex = 0;
    bool IsExtrapolation = false;
};

